<?php
//注册新用户接口
class RegisterAction extends AuthbaseAction {
	public $d  ;
	public function __construct()
	{
		parent::__construct();
		$this->d = D("Api/Member");
	}
    public function index(){
    	$params = array(
    		'username'=>trim($this->_request("username")),
    		'passwd'=>trim($this->_request("passwd")),
    		'repasswd'=>trim($this->_request("repasswd")),
    	);
    	$res = $this->d->register($params);
    	exit(json_encode($res));
    }
}